#ifndef _ADC_H_
#define _ADC_H_

#include <stdbool.h>          // standard boolean definitions
#include <stdint.h>           // standard integer functions
#include "user_config.h"

#if (BATT_TYPE == LI_BATT)
#define DEFAULT_REFERENCE_VOLTAGE	93

#elif (BATT_TYPE == ANEROID_BATT)
#define DEFAULT_REFERENCE_VOLTAGE	93
#endif

typedef void (*hal_adc_cb_t)(uint32_t adc_value);

void adc_calibration(void);

void adc_deinit(void);
void adc_cb_register(hal_adc_cb_t cb);
void adc_trigger(void);
void adc_isr(void);


#endif //



